<template>
  <div>
    我是一个modal内容
    <lm-button type="primary" @click="closeMe">关闭</lm-button>
    <h1>我是传递过来的参数:{{ params.name }}</h1>
  </div>
</template>

<script>
export default {
  props: {
    params: {
      type: Object,
      default: () => {},
    },
  },
  methods: {
    closeMe() {
      // this.$emit("close");
      this.$emit("success", {
        message: "success",
      });
    },
  },
};
</script>

<style>
</style>